package org.wdcode.back.listener;

import javax.servlet.ServletContextEvent;

import org.wdcode.back.constants.BackConstants;
import org.wdcode.back.params.WdBackParams;
import org.wdcode.base.listener.WdInitListener;

/**
 * 后台初始化监听器
 * @author WD
 * @since JDK6
 * @version 1.0 2009-12-07
 */
public class WdBackInitListener extends WdInitListener {
	/**
	 * 初始化资源
	 */
	@Override
	public void contextInitialized(ServletContextEvent event) {
		// 执行父方法
		super.contextInitialized(event);
		// 设置后台主题路径
		event.getServletContext().setAttribute(BackConstants.THEME_BACK, WdBackParams.getThemeBack());
		// 设置程序后台主题路径
	}
}
